<?php
	// 调用示例：
require('../../../global.php');

$name = $db->get('tb_class', 'name', array('tbid' => $_GET['id']));

?>
<!DOCTYPE html>
<html>
<head>
    
</head>
 <body>

<div id="box" style="position:absolute;background: url(code.png);background-size:100% 95%;background-repeat:no-repeat;background-position: 0px 0px;

 background-attachment:fixed;width:360px; height:370px;">
    <div id="code" style="margin-top:40px;margin-left:45px;"></div>  
   
</div>
 <div id="name" style="position:absolute;text-align:center;margin-top:333px;margin-left:147px;"><?php echo $name;?></div>  

<!--background-image: url(code.png);width:400px; height:520px;-->
<!-- position:absolute; padding: 0px 0px 10px 18px; absolute;left:14px;-->
  <?php require('admin/_js.php'); ?> 
 <script src="<?php echo SITEROOTURL; ?>/admin/js/plugins/jquery-qrcode-master/jquery.qrcode.min.js"></script>
    <script>
    $(function(){
     
   //http://www.familyandtree.com/order_pro.php
    	 $('#code').qrcode('http://www.familyandtree.com/order_pro.php?id=' +<?php echo $_GET[id];?>+'&qrcode=1');  

    });
    </script>
</body> 
</html>
